package com.ccn.crm.service.impl;

import com.ccn.crm.mapper.installManageMapper;
import com.ccn.crm.model.installManage;
import com.ccn.crm.service.IInstall;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InstallServiceImpl implements IInstall {

    @Autowired
    private installManageMapper installManage;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return installManage.deleteByPrimaryKey(id);
    }

    @Override
    public int updateStatusById(Integer id, String pushStatus) {
        return installManage.updateStatusById(id,pushStatus);
    }

    @Override
    public int insert(installManage record) {
        return installManage.insert(record);
    }

    @Override
    public installManage selectByPrimaryKey(Integer id) {
        return installManage.selectByPrimaryKey(id);
    }

    @Override
    public installManage selectByPCode(String name) {
        return installManage.selectByPCode(name);
    }

    @Override
    public List<installManage> selectAll() {
        return installManage.selectAll();
    }

    @Override
    public int updateByPrimaryKey(installManage record) {
        return installManage.updateByPrimaryKey(record);
    }

    @Override
    public int updateBycrmPid(String crmpid,Double sum, Double intallCostSum, String timeDiffSum) {
        return installManage.updateBycrmPid(crmpid,sum,intallCostSum,timeDiffSum);
    }
}
